package pl.elka.simulator.gui;

import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.JFrame;

public class MainFrame extends JFrame {   

	public MainFrame(){
		super("Simulator");
	}
	
	public void start(){
		this.setLayout(new GridLayout(0,2));
		DrawArea da = new DrawArea();
		//da.setLocation(new Point(40, 40));
		da.setPreferredSize(new Dimension(280, 240));
		
		AdministrationPanel ap = new AdministrationPanel();
		//ap.setLocation(0, 0);
		da.setSize(100,100);
		this.add(ap);
		this.add(da);
		
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(500, 500);
		this.setLocationRelativeTo(null);
		//pack();
		this.setVisible(true);
	}    
}
